package cn.xanderye.mdblog.service;

import cn.xanderye.mdblog.base.BaseService;
import cn.xanderye.mdblog.entity.Topic;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author hbxz
 * @date 2018-12-19
 */
@FeignClient(name = "mdblog-service", path = "topic")
public interface TopicService extends BaseService<Topic> {

    /**
     * 逻辑删除一条话题
     * @param topic
     */
    @PostMapping("deleteTopic")
    void deleteTopic(@RequestBody Topic topic);
}
